package service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.AdminDAO;
import domain.Admin;

@Service
public class AdminService {
	@Autowired
	private AdminDAO dao;
	
	public Admin isExist(String username,String password) {
		return dao.isExist(username, password);
	}
	
	public Integer changePassword(Long id,String password) {
		return dao.changePassword(id,password);
	}
}
